﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CC_day_14___Shapes_MVC.Models;

namespace CC_day_14___Shapes_MVC.Models
{
    public class Triangle : Shape
    {
        public double Base { get; set; }
        public double Height { get; set; }

        public override double GetArea()
        {
            return .5 * this.Base * this.Height;
        }
    }
}